const aa = {
    x: 42,
    getX: function () {
        return this.x;
    },
};

// 复制函数，但是没有复制x，导致this.x为undefined
const unboundGetX = aa.getX;
console.log(unboundGetX); // The function gets invoked at the global scope
// Expected output: undefined

// const boundGetX = unboundGetX.bind(aa);
// console.log(boundGetX());
// Expected output: 42
